package com.ag.lzw.dao;

import java.util.List;

import com.ag.dao.TbUserDeptDAO;

public class LzwTbUserDeptDAO extends TbUserDeptDAO {
	
	public List findUserDeptByDid(String id){
		String hql = "from TbUserDept ud join fetch ud.tbUser where ud.UD_ID='"+id+"'";
		return getHibernateTemplate().find(hql);
	}
	
	public List findDeptByUid(String uid){
		String hql = "from TbUserDept ud join fetch ud.tbUser where ud.tbUser.UId='"+uid+"'";
		return getHibernateTemplate().find(hql);
	}

}
